﻿ 
@inherits LayoutComponentBase

@using AntDesign
@using AntDesign.ProLayout
@using ERP.Abp.AspnetCore.Components.Web.AntDesignTheme.Themes.AntDesignTheme
@using Volo.Abp.MultiTenancy;
@using Microsoft.AspNetCore.Components.Authorization
@*@inject ICurrentTenant CurrentTenant
@inject IJSRuntime IJSRuntime*@
@inject IOptions<ProSettings>  ProSettings
@inject IMyMenuManager MenuManager;
<AntDesign.ProLayout.BasicLayout @ref="_BasicLayout"  DisableContentMargin="true"  
                                 Logo="@("https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg")"
                                 MenuData="_menuData" >
    <RightContentRender>
         
        <RightContent />
    </RightContentRender>
    <ChildContent>
            @if (ProSettings.Value.FixedHeader)
            {
                <div style=" height: 41px; width:calc(100% - 10px) ">&nbsp;</div>
            }
             
            <NavigationTabs />
    </ChildContent>
    <FooterRender >
      @*  <FooterView Copyright="2021 Ant Design Blazor"  ></FooterView>*@
    </FooterRender>
</AntDesign.ProLayout.BasicLayout>
 <AntContainer />
@*<SettingDrawer />*@
@code
{
    protected MenuTheme menuTheme = null;
    protected AntDesign.ProLayout.BasicLayout  _BasicLayout = null;
    private  MenuDataItem[] _menuData = null;
    protected override Task OnInitializedAsync()
    {
        _menuData = MenuManager.GetAntMenuData();
        base.OnInitialized();
        return base.OnInitializedAsync();
    }
}
